from pywatson.answer.answer import Answer
from pywatson.answer.evidence import Evidence
from pywatson.answer.synonym import Synonym
from pywatson.answer.watson_answer import WatsonAnswer


class TestAnswer(object):
    """Unit tests for the WatsonQuestion class"""

    def test___init___complete(self, answers):
        """WatsonAnswer is constructed properly with all parameters provided"""
        answer = WatsonAnswer(answers[0])

        assert answer.raw == answers[0]
        assert answer.id == '32C4518E1542435A994320B933D98FEE'
        assert len(answer.answers) == 5
        assert type(answer.answers[0]) is Answer
        assert answer.category is None
        assert answer.error_notifications == []  # TODO: add test data
        assert len(answer.evidence_list) == 5
        assert type(answer.evidence_list[0]) is Evidence
        assert len(answer.focus_list) == 1
        assert type(answer.focus_list[0]) is str
        assert len(answer.lat_list) == 1
        assert type(answer.lat_list[0]) is str
        assert answer.pipelineid == '153681347'
        assert len(answer.qclasslist) == 2
        assert type(answer.qclasslist[0]) is str
        assert answer.status == 'Complete'
        assert answer.supplemental is None
        assert len(answer.synonym_list) == 3
        assert type(answer.synonym_list[0]) is Synonym

@@ -35,16 +35,81 @@
  Answer%0A
+from pywatson.answer.error_notification import ErrorNotification%0A
 from pyw
@@ -716,28 +716,26 @@
 category is 
-None
+''
 %0A        ass
@@ -734,24 +734,28 @@
      assert 
+len(
 answer.error
@@ -772,37 +772,224 @@
 ions
+)
  == 
-%5B%5D  # TODO: add test data
+1%0A        assert type(answer.error_notifications%5B0%5D) is ErrorNotification%0A        assert answer.error_notifications%5B0%5D.error is 'test error'%0A        assert answer.error_notifications%5B0%5D.text is 'test error text'
 %0A   

Add more TestAnswer assertions