'Test that we can see orders on Order History tab.'

def test_order_history(self):

    self.account_settings_page.switch_account_settings_tabs('orders-tab')
    self.assertTrue(self.account_settings_page.is_order_history_tab_visible)
    expected_order_data_first_row = {'number': 'Order    Number:\nEdx-123', 'date': 'Date    Placed:\nApr    21,    2016', 'price': 'Cost:\n$100.00'}
    expected_order_data_second_row = {'number': 'Product    Name:\nTest    Course', 'date': 'Date    Placed:\nApr    21,    2016', 'price': 'Cost:\n$100.00'}
    for (field_name, value) in expected_order_data_first_row.iteritems():
        self.assertEqual(self.account_settings_page.get_value_of_order_history_row_item('order-Edx-123', field_name)[0], value)
    for (field_name, value) in expected_order_data_second_row.iteritems():
        self.assertEqual(self.account_settings_page.get_value_of_order_history_row_item('order-Edx-123', field_name)[1], value)
    self.assertTrue(self.account_settings_page.order_button_is_visible('order-Edx-123'))
