1 2 3 4 5 6 7 8 9 10 11 12 13
import unittest from sources.acyclicity import acyclic class MyTestCase(unittest.TestCase): def test_something(self): adj = [[1], [2], [0], [0]] self.assertEqual(1, acyclic(adj)) if __name__ == '__main__': unittest.main()