def test_can_parse_tables():
 step = Step.from_string(I_HAVE_TASTY_BEVERAGES)
 assert isinstance(step.hashes, list)
 assert_equals(len(step.hashes), 2)
 assert_equals(step.hashes[0], {'Name': 'Skol', 'Type': 'Beer', 'Price': '3.80'})
 assert_equals(step.hashes[1], {'Name': 'Nestea', 'Type': 'Ice-tea', 'Price': '2.10'})

def test_can_parse_tables ( ) : step = Step . from_string ( I_HAVE_TASTY_BEVERAGES ) assert isinstance ( step . hashes , list ) assert_equals ( len ( step . hashes ) , 2 ) assert_equals ( step . hashes [ 0 ] , { 'Name' : 'Skol' , 'Type' : 'Beer' , 'Price' : '3.80' } ) assert_equals ( step . hashes [ 1 ] , { 'Name' : 'Nestea' , 'Type' : 'Ice-tea' , 'Price' : '2.10' } )
it should have a list of data from a given step .