'Confirm that we can set the attributes of a sid\'s file correctly.'

def test_set_sid_attrs(self):

    sid = 1
    start_day = Timestamp('2015-11-27', tz='UTC')
    end_day = Timestamp('2015-06-02', tz='UTC')
    attrs = {'start_day': (start_day.value / int(1000000000.0)), 'end_day': (end_day.value / int(1000000000.0)), 'factor': 100}
    self.writer.set_sid_attrs(sid, **attrs)
    for (k, v) in attrs.items():
        self.assertEqual(self.reader.get_sid_attr(sid, k), v)
