

def testAddsKeywordArgumentsToSelfLink(self):
    self.builder = Builder(self.uri, name='test', title='Test Document', type='application/hal+json', profile='/profiles/root', hreflang='en-GB', deprecation=False, templated=False)
    doc = Document.from_object(self.builder.as_object(), base_uri='http://localhsot')
    self_link = doc.links['self']
    self.assertEqual(self_link.href, self.uri)
    self.assertEqual(self_link.name, 'test')
    self.assertEqual(self_link.title, 'Test Document')
    self.assertEqual(self_link.type, 'application/hal+json')
    self.assertEqual(self_link.profile, '/profiles/root')
    self.assertFalse(self_link.deprecation)
    self.assertFalse(self_link.is_templated)

dataset/ETHPy150Open wharris/dougrain/test/test_builder.py InitialBuilderTests.testAddsKeywordArgumentsToSelfLink/original