<s> import unittest <EOL> from conans . model . ref import ConanFileReference <EOL> from conans . errors import ConanException <EOL> class RefTest ( unittest . TestCase ) : <EOL> def basic_test ( self ) : <EOL> ref = ConanFileReference . loads ( "<STR_LIT>" ) <EOL> self . assertEqual ( ref . name , "<STR_LIT>" ) <EOL> self . assertEqual ( ref . version , "<STR_LIT>" ) <EOL> self . assertEqual ( ref . user , "<STR_LIT>" ) <EOL> self . assertEqual ( ref . channel , "<STR_LIT>" ) <EOL> self . assertEqual ( str ( ref ) , "<STR_LIT>" ) <EOL> ref = ConanFileReference . loads ( "<STR_LIT>" ) <EOL> self . assertEqual ( ref . name , "<STR_LIT>" ) <EOL> self . assertEqual ( ref . version , "<STR_LIT>" ) <EOL> self . assertEqual ( ref . user , "<STR_LIT>" ) <EOL> self . assertEqual ( ref . channel , "<STR_LIT>" ) <EOL> self . assertEqual ( str ( ref ) , "<STR_LIT>" ) <EOL> def errors_test ( self ) : <EOL> self . assertRaises ( ConanException , ConanFileReference . loads , "<STR_LIT>" ) <EOL> self . assertRaises ( ConanException , ConanFileReference . loads , "<STR_LIT>" ) <EOL> self . assertRaises ( ConanException , ConanFileReference . loads , "<STR_LIT>" ) <EOL> self . assertRaises ( ConanException , ConanFileReference . loads , "<STR_LIT>" ) <EOL> self . assertRaises ( ConanException , ConanFileReference . loads , "<STR_LIT>" ) <EOL> self . assertRaises ( ConanException , ConanFileReference . loads , "<STR_LIT>" ) </s>
