def test_get_doc_of_index(self): unity_doc = UnityDoc(t_rest(), HealthEnum) doc = unity_doc._get_doc(value=5) assert_that(doc, equal_to('OK'))
def test_get_doc_of_resource(self): unity_doc = UnityDoc(t_rest(), UnityLun) doc = unity_doc._get_doc() assert_that(doc, contains_string('Represents Volume'))
def test_get_doc_of_field(self): unity_doc = UnityDoc(t_rest(), UnityLun) doc = unity_doc._get_doc(field='name') assert_that(doc, equal_to('Readable name'))
def test_get_doc_of_index(self): unity_doc = UnityDoc(t_rest(), HealthEnum) doc = unity_doc._get_doc(value=5) assert_that(doc, equal_to('OK'))
def test_get_doc_of_resource(self): unity_doc = UnityDoc(t_rest(), UnityLun) doc = unity_doc._get_doc() assert_that(doc, contains_string('Represents Volume'))
def test_get_doc_of_field(self): unity_doc = UnityDoc(t_rest(), UnityLun) doc = unity_doc._get_doc(field='name') assert_that(doc, equal_to('Readable name'))