<s> from nose . plugins . attrib import attr <EOL> from tests . checks . common import AgentCheckTest <EOL> @ attr ( requires = '<STR_LIT>' ) <EOL> class TestCheckDisk ( AgentCheckTest ) : <EOL> CHECK_NAME = '<STR_LIT>' <EOL> DISK_GAUGES = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> INODE_GAUGES = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> def test_check ( self ) : <EOL> self . run_check ( { '<STR_LIT>' : [ { '<STR_LIT>' : '<STR_LIT>' } ] } ) <EOL> for metric in self . DISK_GAUGES + self . INODE_GAUGES : <EOL> self . assertMetric ( metric , tags = [ ] ) <EOL> self . coverage_report ( ) <EOL> def test_bad_config ( self ) : <EOL> self . assertRaises ( Exception , <EOL> lambda : self . run_check ( { '<STR_LIT>' : [ { } , { } ] } ) ) </s>
