#NEWLINE# def test_invalid( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'source' : 'test.example.com' , #NEWLINE# 'name' : 'load' , #NEWLINE# #UNINDENT# } #NEWLINE# serializer = MetricSerializer ( data = self ) #NEWLINE# self . assertFalse ( serializer . is_valid ( ) )