示例#1
0
 def test_role_name(self):
     """Testing that the role reads its default name from the name of the
     directory that it lives in."""
     r = Role("some/directory")
     self.assertEqual(r.name, "directory")
     self.assertEqual(str(r), "directory")