예제 #1
0
파일: tests.py 프로젝트: alephmelo/woordy
 def test_translate_valid(self):
     self.maxDiff = None
     method_result = Woordy.translate("book", "en", "pt")
     result = '{"livro": "collection of sheets of paper bound together containing printed or written material"}'
     middle_val = json.loads(result)
     expected_result = json.dumps(middle_val)        
     self.assertCountEqual(expected_result, expected_result)
예제 #2
0
파일: tests.py 프로젝트: naerthon/woordy
 def test_translate_valid(self):
     self.maxDiff = None
     method_result = Woordy.translate("book", "en", "pt")
     result = '{"livro": "collection of sheets of paper bound together containing printed or written material"}'
     middle_val = json.loads(result)
     expected_result = json.dumps(middle_val)
     self.assertCountEqual(expected_result, expected_result)
예제 #3
0
파일: tests.py 프로젝트: alephmelo/woordy
 def test_translate_not_valid(self):
         method_result = Woordy.translate("auhfa", "en", "pt")
         expected_result = 'Word not found. Try checking for some typo issues.'
         self.assertEqual(method_result, expected_result)
예제 #4
0
파일: tests.py 프로젝트: naerthon/woordy
 def test_translate_not_valid(self):
     method_result = Woordy.translate("auhfa", "en", "pt")
     expected_result = 'Word not found. Try checking for some typo issues.'
     self.assertEqual(method_result, expected_result)