<s> import unittest <EOL> from conans . model . build_info import DepsCppInfo <EOL> class BuildInfoTest ( unittest . TestCase ) : <EOL> def _equal ( self , item1 , item2 ) : <EOL> for field in item1 . fields : <EOL> self . assertEqual ( getattr ( item1 , field ) , <EOL> getattr ( item2 , field ) ) <EOL> def help_test ( self ) : <EOL> imports = DepsCppInfo ( ) <EOL> imports . includedirs . append ( "<STR_LIT>" ) <EOL> imports . includedirs . append ( "<STR_LIT>" ) <EOL> imports . libdirs . append ( "<STR_LIT>" ) <EOL> imports . libs . extend ( [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] ) <EOL> child = DepsCppInfo ( ) <EOL> child . includedirs . append ( "<STR_LIT>" ) <EOL> child . cppflags . append ( "<STR_LIT>" ) <EOL> imports . _dependencies [ "<STR_LIT>" ] = child <EOL> output = repr ( imports ) <EOL> imports2 = DepsCppInfo . loads ( output ) <EOL> self . _equal ( imports , imports2 ) </s>
