import unittest
import os
from lib import blackwhite


class BlackWhite(unittest.TestCase):
    """test if the photo is black and white
    """

    def test_blackwhite(self):
        color = os.path.join(os.path.dirname(__file__), 'data/exif.jpg')
        black = os.path.join(os.path.dirname(__file__), 'data/blackwhite.jpg')
        self.assertTrue(blackwhite.isblack(black), 'photo is black')
        self.assertFalse(blackwhite.isblack(color), 'photo is black')

7fbc924f68a2666fb531c4237d351aa5fa8533c5
<mask token>


class BlackWhite(unittest.TestCase):
    <mask token>
    <mask token>

<mask token>


class BlackWhite(unittest.TestCase):
    <mask token>

    def test_blackwhite(self):
        color = os.path.join(os.path.dirname(__file__), 'data/exif.jpg')
        black = os.path.join(os.path.dirname(__file__), 'data/blackwhite.jpg')
        self.assertTrue(blackwhite.isblack(black), 'photo is black')
        self.assertFalse(blackwhite.isblack(color), 'photo is black')

<mask token>


class BlackWhite(unittest.TestCase):
    """test if the photo is black and white
    """

    def test_blackwhite(self):
        color = os.path.join(os.path.dirname(__file__), 'data/exif.jpg')
        black = os.path.join(os.path.dirname(__file__), 'data/blackwhite.jpg')
        self.assertTrue(blackwhite.isblack(black), 'photo is black')
        self.assertFalse(blackwhite.isblack(color), 'photo is black')

import unittest
import os
from lib import blackwhite


class BlackWhite(unittest.TestCase):
    """test if the photo is black and white
    """

    def test_blackwhite(self):
        color = os.path.join(os.path.dirname(__file__), 'data/exif.jpg')
        black = os.path.join(os.path.dirname(__file__), 'data/blackwhite.jpg')
        self.assertTrue(blackwhite.isblack(black), 'photo is black')
        self.assertFalse(blackwhite.isblack(color), 'photo is black')
