Пример #1
0
 def test_append_detail_rows_no_detail_rows(self):
     f = DataFile()
     f._exists = True  # To simulate to the object that a file has been created
     with pytest.raises(AssertionError) as e:
         f.append_detail_rows()
     assert "The number of detail rows has not been defined. Use the `Number Of Detail Rows Is` keyword first." in str(
         e)
Пример #2
0
 def test_append_detail_rows_no_data_file(self):
     f = DataFile()
     with pytest.raises(AssertionError) as e:
         f.append_detail_rows()
     assert "The data file has not been created. Use the 'Create Data File' keyword to create it." in str(
         e)