#NEWLINE# @ xfail #NEWLINE# def test_embed_rubric( db_conn , cards_table ) : #NEWLINE# #INDENT# '\n    Expect embed card to require a rubric.\n    ' #NEWLINE# ( card , errors ) = EmbedCard . insert ( db_conn , { #NEWLINE# #INDENT# 'unit_id' : 'RUF531' , #NEWLINE# 'name' : 'What is?' , #NEWLINE# 'url' : 'http://google.com' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( len ( errors ) == 1 ) #NEWLINE# ( card , errors ) = card . update ( db_conn , { #NEWLINE# #INDENT# 'rubric' : None , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( len ( errors ) == 0 )