예제 #1
0
파일: test_clock.py 프로젝트: goavki/phenny
 def test_beats_normal(self, mock_time):
     mock_time.return_value = 369182
     clock.beats(self.phenny, None)
     self.phenny.say.assert_called_with('@314')
예제 #2
0
    def test_beats_normal(self, mock_time):
        mock_time.return_value = 369182
        beats(self.phenny, None)

        self.phenny.say.assert_called_with('@314')
예제 #3
0
파일: test_clock.py 프로젝트: goavki/phenny
 def test_beats_zero(self, mock_time):
     mock_time.return_value = 0
     clock.beats(self.phenny, None)
     self.phenny.say.assert_called_with('@041')
예제 #4
0
    def test_beats_zero(self, mock_time):
        mock_time.return_value = 0
        beats(self.phenny, None)

        self.phenny.say.assert_called_with('@041')