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')
def test_add_process(self): p = environ.Procfile() p.add_process('foo', 'echo 123') self.assertEqual('echo 123', p.processes['foo'])
def test_init(self): p = environ.Procfile() self.assertEqual(0, len(p.processes))
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')
def test_add_process(self): p = environ.Procfile() p.add_process('foo', 'echo 123') assert 'echo 123' == p.processes['foo']
def test_has_no_processes_after_init(self): p = environ.Procfile() assert len(p.processes) == 0