def test_set_name_attribute_does_nothing(self):
     # The 'name' attribute is set by the constructor. After it is set, it
     # cannot be changed with further calls to set_attribute.
     tag = Tag('old', self.req)
     tag.set_attribute('name', 'new')
     self.assertEqual('old', tag.get_name())
     self.assertEqual('old', tag.get_attribute('name'))
 def test_name(self):
     # The first argument to the Tag constructor is the name, which you can
     # get with get_name().
     tag = Tag('foo', self.req)
     self.assertEqual('foo', tag.get_name())