예제 #1
0
 def test_not_finding_orders(self):
     """No filename matching in package
     """
     self._create_orders("add", "remove", "_clean.py")
     self.assertTrue(not find_orders(self.base_path))
예제 #2
0
 def test_with_os_error(self):
     """Package does not exist
     """
     self.assertTrue(not find_orders(self.orders_path))
예제 #3
0
 def test_finding_orders(self):
     """Finding files that don't start with '_' and that are python files
     in the orders package
     """
     self._create_orders('add.py', 'remove.py')
     self.assertItemsEqual(find_orders(self.base_path), ['add', 'remove'])