Exemplo n.º 1
0
 def test_run_slice_valid_many(self):
     run_name = 'test_run_slice_valid_many'
     new_run = Run(run_name)
     run_slice = new_run.slice('posted,name,status')
     assert ('posted' in run_slice and 'name' in run_slice and 'status'
             in run_slice)
Exemplo n.º 2
0
 def test_run_slice_invalid(self):
     run_name = 'test_run_slice_invalid'
     new_run = Run(run_name)
     with pytest.raises(AttributeError):
         new_run.slice('bullcrap')
Exemplo n.º 3
0
 def test_run_slice_valid(self):
     run_name = 'test_run_slice_valid'
     new_run = Run(run_name)
     assert 'posted' in new_run.slice('posted')