'Test that a child inheriting from library_content block, inherits fields
from parent if these fields are not in its defaults.'

def test_non_defaults_inherited_across_lib(self):

    parent_block = self.get_block_using_split_kvs(block_type='library_content', block_id='parent', fields=dict(inherited='changed!'), defaults=dict(inherited="parent's    default"))
    self.assertEqual(parent_block.inherited, 'changed!')
    child = self.get_block_using_split_kvs(block_type='problem', block_id='child', fields={}, defaults={})
    child.parent = parent_block.location
    self.assertEqual(child.inherited, 'changed!')
