def test_should_broadcast_returns_false_if_time_and_no_backlog(self, mock_set, mock_is_backlog, mock_get): self.assertFalse(level_5_actions.should_broadcast("2343")) mock_get.assert_called_once() mock_is_backlog.assert_called_once_with("2343") mock_set.assert_called_once()
def test_should_broadcast_returns_false_if_not_time(self, mock_get): self.assertFalse(level_5_actions.should_broadcast("2343")) mock_get.assert_called_once()