content/test/gpu/flake_suppressor/data_types_unittest.py
def testEquality(self):
    """Tests that equality is properly calculated."""
    r = data_types.Result('suite', 'test', ('win', 'nvidia'), 'id')
    other = data_types.Result('suite', 'test', ('win', 'nvidia'), 'id')
    self.assertEqual(r, other)

    other = data_types.Result('notsuite', 'test', ('win', 'nvidia'), 'id')
    self.assertNotEqual(r, other)

    other = data_types.Result('suite', 'nottest', ('win', 'nvidia'), 'id')
    self.assertNotEqual(r, other)

    other = data_types.Result('suite', 'test', tuple(['win']), 'id')
    self.assertNotEqual(r, other)

    other = data_types.Result('suite', 'test', ('win', 'nvidia'), 'notid')
    self.assertNotEqual(r, other)

    other = None
    self.assertNotEqual(r, other)
Tests that equality is properly calculated.
Tests that equality is properly calculated.
Tests that equality is properly calculated .
def testEquality(self):
    r = data_types.Result('suite', 'test', ('win', 'nvidia'), 'id')
    other = data_types.Result('suite', 'test', ('win', 'nvidia'), 'id')
    self.assertEqual(r, other)
    other = data_types.Result('notsuite', 'test', ('win', 'nvidia'), 'id')
    self.assertNotEqual(r, other)
    other = data_types.Result('suite', 'nottest', ('win', 'nvidia'), 'id')
    self.assertNotEqual(r, other)
    other = data_types.Result('suite', 'test', tuple(['win']), 'id')
    self.assertNotEqual(r, other)
    other = data_types.Result('suite', 'test', ('win', 'nvidia'), 'notid')
    self.assertNotEqual(r, other)
    other = None
    self.assertNotEqual(r, other)
def testEquality ( self ) : r = data_types . Result ( 'suite' , 'test' , ( 'win' , 'nvidia' ) , 'id' ) other = data_types . Result ( 'suite' , 'test' , ( 'win' , 'nvidia' ) , 'id' ) self . assertEqual ( r , other ) other = data_types . Result ( 'notsuite' , 'test' , ( 'win' , 'nvidia' ) , 'id' ) self . assertNotEqual ( r , other ) other = data_types . Result ( 'suite' , 'nottest' , ( 'win' , 'nvidia' ) , 'id' ) self . assertNotEqual ( r , other ) other = data_types . Result ( 'suite' , 'test' , tuple ( [ 'win' ] ) , 'id' ) self . assertNotEqual ( r , other ) other = data_types . Result ( 'suite' , 'test' , ( 'win' , 'nvidia' ) , 'notid' ) self . assertNotEqual ( r , other ) other = None self . assertNotEqual ( r , other )
Tests that equality is properly calculated.
Tests that equality is properly calculated .
"""Tests that equality is properly calculated."""
self