def test_yi_now(self, mock_time): mock_time.return_value = 1339419650 clock.yi(self.phenny, None) self.phenny.say.assert_called_with('Yes! PARTAI!')
def test_yi_soon(self, mock_time): mock_time.return_value = 1339419000 clock.yi(self.phenny, None) self.phenny.say.assert_called_with('Soon...')
def test_yi_normal(self, mock_time): mock_time.return_value = 369182 clock.yi(self.phenny, None) self.phenny.say.assert_called_with('Not yet...')
def test_yi_now(self, mock_time): mock_time.return_value = 1339419650 yi(self.phenny, None) self.phenny.say.assert_called_with('Yes! PARTAI!')
def test_yi_soon(self, mock_time): mock_time.return_value = 1339419000 yi(self.phenny, None) self.phenny.say.assert_called_with('Soon...')
def test_yi_normal(self, mock_time): mock_time.return_value = 369182 yi(self.phenny, None) self.phenny.say.assert_called_with('Not yet...')