def test_view_member_html(self):
        url_ = member_url(self.cra.name, 'cofog1', self.member)
        result = self.app.get(url_)

        h.assert_equal(result.status, '200 OK')

        # Links to entries json and csv and entries listing
        h.assert_true('<a href="/cra/cofog1/3.json">' in result)
        h.assert_true('<a href="/cra/cofog1/3/entries">Search</a>' in result)
Example #2
0
    def test_view_member_html(self):
        url_ = member_url(self.cra.name, 'cofog1', self.member)
        result = self.app.get(url_)

        h.assert_equal(result.status, '200 OK')

        # Links to entries json and csv and entries listing
        h.assert_true('<a href="/cra/cofog1/3.json">' in result)
        h.assert_true('<a href="/cra/cofog1/3/entries">Search</a>' in result)
Example #3
0
    def test_view_member_html(self):
        url_ = member_url(self.cra.name, 'cofog1', self.member)
        result = self.app.get(url_)

        assert result.status == '200 OK'

        # Links to entries json and csv and entries listing
        assert '<a href="/cra/cofog1/3.json">' in result
        assert '<a href="/cra/cofog1/3/entries">Search</a>' in result
Example #4
0
    def test_view_member_json(self):
        url_ = member_url(self.cra.name, 'cofog1', self.member, format='json')
        result = self.app.get(url_)

        h.assert_equal(result.status, '200 OK')
        h.assert_equal(result.content_type, 'application/json')

        json_data = json.loads(result.body)
        h.assert_equal(json_data['name'], u'3')
        h.assert_equal(json_data['label'], self.member['label'])
        h.assert_equal(json_data['id'], self.member['id'])
    def test_view_member_json(self):
        url_ = member_url(self.cra.name, 'cofog1', self.member, format='json')
        result = self.app.get(url_)

        h.assert_equal(result.status, '200 OK')
        h.assert_equal(result.content_type, 'application/json')

        json_data = json.loads(result.body)
        h.assert_equal(json_data['name'], u'3')
        h.assert_equal(json_data['label'], self.member['label'])
        h.assert_equal(json_data['id'], self.member['id'])
Example #6
0
    def test_view_member_json(self):
        url_ = member_url(self.cra.name, 'cofog1', self.member, format='json')
        result = self.app.get(url_)

        assert result.status == '200 OK'
        assert result.content_type == 'application/json'

        json_data = json.loads(result.body)
        assert json_data['name'] == u'3'
        assert json_data['label'] == self.member['label']
        assert json_data['id'] == self.member['id']
Example #7
0
    def test_view_member_json(self):
        url_ = member_url(self.cra.name, "cofog1", self.member, format="json")
        result = self.app.get(url_)

        h.assert_equal(result.status, "200 OK")
        h.assert_equal(result.content_type, "application/json")

        json_data = json.loads(result.body)
        h.assert_equal(json_data["name"], u"3")
        h.assert_equal(json_data["label"], self.member["label"])
        h.assert_equal(json_data["id"], self.member["id"])