Beispiel #1
0
 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!')
Beispiel #2
0
 def test_yi_soon(self, mock_time):
     mock_time.return_value = 1339419000
     clock.yi(self.phenny, None)
     self.phenny.say.assert_called_with('Soon...')
Beispiel #3
0
 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...')
Beispiel #4
0
    def test_yi_now(self, mock_time):
        mock_time.return_value = 1339419650
        yi(self.phenny, None)

        self.phenny.say.assert_called_with('Yes! PARTAI!')
Beispiel #5
0
    def test_yi_soon(self, mock_time):
        mock_time.return_value = 1339419000
        yi(self.phenny, None)

        self.phenny.say.assert_called_with('Soon...')
Beispiel #6
0
    def test_yi_normal(self, mock_time):
        mock_time.return_value = 369182
        yi(self.phenny, None)

        self.phenny.say.assert_called_with('Not yet...')