def test_dependencies(self): self.assertEqual(Bear.get_dependencies(), []) self.assertEqual(Bear.missing_dependencies([]), []) self.assertEqual(Bear.missing_dependencies([BadTestBear]), []) self.assertEqual(TestBear.missing_dependencies([]), [BadTestBear]) self.assertEqual(TestBear.missing_dependencies([BadTestBear]), []) self.assertEqual(TestBear.missing_dependencies([TestBear]), [BadTestBear]) self.assertEqual(TestBear.missing_dependencies([TestBear, BadTestBear]), [])
def test_dependencies(self): self.assertEqual(Bear.BEAR_DEPS, set()) self.assertEqual(Bear.missing_dependencies([]), set()) self.assertEqual(Bear.missing_dependencies([BadTestBear]), set()) self.assertEqual(TestBear.missing_dependencies([]), {BadTestBear}) self.assertEqual(TestBear.missing_dependencies([BadTestBear]), set()) self.assertEqual(TestBear.missing_dependencies([TestBear]), {BadTestBear}) self.assertEqual( TestBear.missing_dependencies([TestBear, BadTestBear]), set())
def test_dependencies(self): self.assertEqual(Bear.get_dependencies(), []) self.assertEqual(Bear.missing_dependencies([]), []) self.assertEqual(Bear.missing_dependencies([BadTestBear]), []) self.assertEqual(TestBear.missing_dependencies([]), [BadTestBear]) self.assertEqual(TestBear.missing_dependencies([BadTestBear]), []) self.assertEqual(TestBear.missing_dependencies([TestBear]), [BadTestBear]) self.assertEqual( TestBear.missing_dependencies([TestBear, BadTestBear]), [])
def test_dependencies(self): self.assertEqual(Bear.BEAR_DEPS, set()) self.assertEqual(Bear.missing_dependencies([]), set()) self.assertEqual(Bear.missing_dependencies([BadTestBear]), set()) self.assertEqual(TestBear.missing_dependencies([]), {BadTestBear}) self.assertEqual(TestBear.missing_dependencies([BadTestBear]), set()) self.assertEqual(TestBear.missing_dependencies([TestBear]), {BadTestBear}) self.assertEqual(TestBear.missing_dependencies([TestBear, BadTestBear]), set())