Ejemplo n.º 1
0
 def test_parse_readers(self):
     readers = ProjectsParser.parse_list(self.dictionary, 'allow_read')
     self.assertTrue('realsugar' in readers)
Ejemplo n.º 2
0
 def test_parse_pushers(self):
     pushers = ProjectsParser.parse_list(self.dictionary, 'allow_push')
     self.assertTrue('magadan' in pushers)
     self.assertTrue('realsugar' in pushers)
Ejemplo n.º 3
0
 def setUp(self):
     self.file = open(settings.FIXTURE_PATH + HGRC, 'r')
     self.lines =  self.file.readlines()
     self.file.close()
     self.dictionary = ProjectsParser.parse_lines(self.lines)