Ejemplo n.º 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))
Ejemplo n.º 2
0
 def test_with_os_error(self):
     """Package does not exist
     """
     self.assertTrue(not find_orders(self.orders_path))
Ejemplo n.º 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'])