def test_does_not_call_tons_o_shit_if_input_is_four(self, reproduction, kvp, entrance): self.input.return_value = 4 epe.main() self.assertFalse(reproduction.called) self.assertFalse(kvp.called) self.assertFalse(entrance.called)
def test_calls_extrance_exposure_if_user_input_is_three(self, entrance_exposure): self.input.return_value = 3 epe.main() entrance_exposure.assert_called_once_with()
def test_does_not_call_extrance_exposure_if_user_input_is_not_three(self, entrance_exposure): self.input.return_value = 2 epe.main() self.assertFalse(entrance_exposure.called)
def test_calls_kvp_test_if_user_input_is_two(self, kvp_test): self.input.return_value = 2 epe.main() kvp_test.assert_called_once_with()
def test_does_not_call_kvp_test_if_user_input_is_not_two(self, kvp_test): self.input.return_value = 1 epe.main() self.assertFalse(kvp_test.called)
def test_does_not_call_exposure_reproduction_if_user_input_is_not_one(self, exposure_reproduction): self.input.return_value = 2 epe.main() self.assertFalse(exposure_reproduction.called)
def test_calls_exposure_reproduction_if_user_input_is_one(self, exposure_reproduction): self.input.return_value = 1 epe.main() exposure_reproduction.assert_called_once_with()
def test_calls_raw_input_to_accept_user_input(self): epe.main() self.input.assert_called_once_with()
def test_main_calls_show_menu_function(self): epe.main() self.show_menu.assert_called_once_with()
def test_main_function_exists(self): with self.assertRaises(AssertionError): with self.assertRaises(AttributeError): epe.main()