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