Exemplo n.º 1
0
 def test_dotted_name(self):
     self.assertEqual(dotted_name(["hello", "world"]), "hello.world")
     self.assertEqual(dotted_name(["foo", ["bar", "baz"], "boom"]),
                      "foo.bar.baz.boom")
     self.assertEqual(dotted_name(["foo", ("bar", "baz"), "boom"]),
                      "foo.bar.baz.boom")
     self.assertEqual(dotted_name([1, 2, 3]), "1.2.3")
     self.assertEqual(dotted_name("right"), "right")
Exemplo n.º 2
0
 def test_dotted_name_assert(self, names):
   dotted_name(names)
Exemplo n.º 3
0
 def test_dotted_name(self, names, expected):
   self.assertEqual(dotted_name(names), expected)