Exemple #1
0
 def test_add_process_ensures_unique_name(self):
     p = environ.Procfile()
     p.add_process('foo', 'echo 123')
     self.assertRaises(AssertionError, p.add_process, 'foo', 'echo 123')
Exemple #2
0
 def test_add_process(self):
     p = environ.Procfile()
     p.add_process('foo', 'echo 123')
     self.assertEqual('echo 123', p.processes['foo'])
Exemple #3
0
 def test_init(self):
     p = environ.Procfile()
     self.assertEqual(0, len(p.processes))
Exemple #4
0
 def test_add_process_ensures_unique_name(self):
     p = environ.Procfile()
     p.add_process('foo', 'echo 123')
     with pytest.raises(AssertionError):
         p.add_process('foo', 'echo 123')
Exemple #5
0
 def test_add_process(self):
     p = environ.Procfile()
     p.add_process('foo', 'echo 123')
     assert 'echo 123' == p.processes['foo']
Exemple #6
0
 def test_has_no_processes_after_init(self):
     p = environ.Procfile()
     assert len(p.processes) == 0