Пример #1
0
 def test_aggregate(self):
     d = Dotfile("", "inputrc")
     d.add_contents_from_source("dotfiles-a", "1")
     d.add_contents_from_source("dotfiles-user", "3")
     d.add_contents_from_source("dotfiles-z", "2")
     self.assertEqual(d.aggregated_contents(), "1\n2\n3")