Commits

Maxim Moiseev committed 67d0be0

removing old file

  • Participants
  • Parent commits 3a5d8e6

Comments (0)

Files changed (1)

foonctest/foonc.py

-import unittest
-
-from foonc import foonc
-
-
-def inc(x):
-    return x + 1
-
-class FooncTests(unittest.TestCase):
-    def setUp(self):
-        super(FooncTests, self).setUp()
-
-    def test_const(self):
-        self.assertEqual(42, foonc.const(42)('whatever', is_passed='in'))
-
-    def test_compose2(self):
-        f = foonc._compose2(int, inc)
-        self.assertEqual(42, f('41'))
-
-
-class FooncWraperTests(unittest.TestCase):
-    pass
-
-
-def suite():
-    suite = unittest.TestSuite()
-    suite.addTests(unittest.makeSuite(FooncTests))
-    suite.addTests(unittest.makeSuite(FooncWrapperTests))
-    return suite
-
-
-if __name__ == '__main__':
-    unittest.main()