コード例 #1
0
ファイル: tests.py プロジェクト: Evfrosiniya/homework-4
 def test_check_time(self):
     message_form = MessageForm(self.driver)
     message_form.set_message_text(self.MESSAGE_TEXT)
     message_form.message_send()
     last_message_time = message_form.get_last_message_time()
     self.assertEqual(datetime.strftime(datetime.now(), '%H:%M:%S'),
                      str(last_message_time))
コード例 #2
0
ファイル: tests.py プロジェクト: Evfrosiniya/homework-4
 def test_send_empty_message(self):
     message_form = MessageForm(self.driver)
     message_form.set_message_text(self.EMPTY_MESSAGE_TEXT)
     message_form.message_send()
     messagebox_text = message_form.get_textarea_value()
     self.assertNotEqual(messagebox_text, u'')
コード例 #3
0
ファイル: tests.py プロジェクト: Evfrosiniya/homework-4
 def test_send_message(self):
     message_form = MessageForm(self.driver)
     message_form.set_message_text(self.MESSAGE_TEXT)
     message_form.message_send()
     last_message_text = message_form.get_last_message_text()
     self.assertEqual(self.MESSAGE_TEXT, last_message_text)