'Tests the serialize_item method.'

def test_serialize_item(self):

    (fields, label) = serialize_item(self.course)
    self.assertEqual(label, u'course')
    self.assertIn(u'edited_on', fields.keys())
    self.assertIn(u'display_name', fields.keys())
    self.assertIn(u'org', fields.keys())
    self.assertIn(u'course', fields.keys())
    self.assertIn(u'run', fields.keys())
    self.assertIn(u'course_key', fields.keys())
    self.assertIn(u'location', fields.keys())
    self.assertIn(u'block_type', fields.keys())
    self.assertIn(u'detached', fields.keys())
    self.assertNotIn(u'checklist', fields.keys())
