def test__parse_header(): """geomagio.pcdcp.PCDCPParser_test.test_parse_header() Call the _parse_header method with a header. Verify the header name and value are split at the correct column. """ parser = PCDCPParser() parser._parse_header('BOU 2015 001 01-Jan-15 HEZF 0.01nT' + ' File Version 2.00') assert_equals(parser.header['date'], '01-Jan-15') assert_equals(parser.header['station'], 'BOU') assert_equals(parser.header['year'], '2015') assert_equals(parser.header['yearday'], '001')