
import unittest

from binaryornot import check


class TestIsBinary(unittest.TestCase):

    def setUp(self):
        pass

    def test_is_binary(self):
        pass

    def tearDown(self):
        pass

if __name__ == '__main__':
    unittest.main()

import unittest

from binaryornot.check import is_binary


class TestIsBinary(unittest.TestCase):

    def test_css(self):
        self.assertFalse(is_binary('tests/files/bootstrap-glyphicons.css'))

    def test_json(self):
        self.assertFalse(is_binary('tests/files/cookiecutter.json'))

    def test_eot(self):
        self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.eot'))

    def test_otf(self):
        self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.otf'))

    def test_svg(self):
        self.assertFalse(is_binary('tests/files/glyphiconshalflings-regular.svg'))

    def test_ttf(self):
        self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.ttf'))

    def test_woff(self):
        self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.woff'))

    def test_txt(self):
        self.assertFalse(is_binary('tests/files/robots.txt'))


if __name__ == '__main__':
    unittest.main()
Add lots of miserably failing tests.
Add lots of miserably failing tests.

  
  import unittest
  
- from binaryornot import check
+ from binaryornot.check import is_binary
  
  
  class TestIsBinary(unittest.TestCase):
  
-     def setUp(self):
+     def test_css(self):
-         pass
+         self.assertFalse(is_binary('tests/files/bootstrap-glyphicons.css'))
  
-     def test_is_binary(self):
+     def test_json(self):
-         pass
+         self.assertFalse(is_binary('tests/files/cookiecutter.json'))
  
-     def tearDown(self):
+     def test_eot(self):
-         pass
+         self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.eot'))
+ 
+     def test_otf(self):
+         self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.otf'))
+ 
+     def test_svg(self):
+         self.assertFalse(is_binary('tests/files/glyphiconshalflings-regular.svg'))
+ 
+     def test_ttf(self):
+         self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.ttf'))
+ 
+     def test_woff(self):
+         self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.woff'))
+ 
+     def test_txt(self):
+         self.assertFalse(is_binary('tests/files/robots.txt'))
+ 
  
  if __name__ == '__main__':
      unittest.main()
Add lots of miserably failing tests.
## Code Before:

import unittest

from binaryornot import check


class TestIsBinary(unittest.TestCase):

    def setUp(self):
        pass

    def test_is_binary(self):
        pass

    def tearDown(self):
        pass

if __name__ == '__main__':
    unittest.main()
## Instruction:
Add lots of miserably failing tests.
## Code After:

import unittest

from binaryornot.check import is_binary


class TestIsBinary(unittest.TestCase):

    def test_css(self):
        self.assertFalse(is_binary('tests/files/bootstrap-glyphicons.css'))

    def test_json(self):
        self.assertFalse(is_binary('tests/files/cookiecutter.json'))

    def test_eot(self):
        self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.eot'))

    def test_otf(self):
        self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.otf'))

    def test_svg(self):
        self.assertFalse(is_binary('tests/files/glyphiconshalflings-regular.svg'))

    def test_ttf(self):
        self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.ttf'))

    def test_woff(self):
        self.assertTrue(is_binary('tests/files/glyphiconshalflings-regular.woff'))

    def test_txt(self):
        self.assertFalse(is_binary('tests/files/robots.txt'))


if __name__ == '__main__':
    unittest.main()