<s> import unittest <EOL> from conans . test . tools import TestClient <EOL> from conans . util . files import load <EOL> import os <EOL> class ConanfileExtendTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> client = TestClient ( ) <EOL> base = '''<STR_LIT>''' <EOL> files = { "<STR_LIT>" : base } <EOL> client . save ( files ) <EOL> client . run ( "<STR_LIT>" ) <EOL> base = '''<STR_LIT>''' <EOL> files = { "<STR_LIT>" : base } <EOL> client . save ( files ) <EOL> client . run ( "<STR_LIT>" ) <EOL> self . base_folder = client . base_folder <EOL> def test_base ( self ) : <EOL> base = '''<STR_LIT>''' <EOL> extension = '''<STR_LIT>''' <EOL> files = { "<STR_LIT>" : base , <EOL> "<STR_LIT>" : extension } <EOL> client = TestClient ( self . base_folder ) <EOL> client . save ( files ) <EOL> client . run ( "<STR_LIT>" ) <EOL> conaninfo = load ( os . path . join ( client . current_folder , "<STR_LIT>" ) ) <EOL> self . assertIn ( "<STR_LIT>" , conaninfo ) <EOL> self . assertIn ( "<STR_LIT>" , conaninfo ) <EOL> self . assertNotIn ( "<STR_LIT>" , conaninfo ) <EOL> self . assertNotIn ( "<STR_LIT>" , conaninfo ) <EOL> client . run ( "<STR_LIT>" ) <EOL> self . assertIn ( "<STR_LIT>" , client . user_io . out ) <EOL> client . run ( "<STR_LIT:info>" ) <EOL> self . assertIn ( "<STR_LIT>" , client . user_io . out ) <EOL> self . assertNotIn ( "<STR_LIT>" , client . user_io . out ) <EOL> client . run ( "<STR_LIT>" ) <EOL> conaninfo = load ( os . path . join ( client . current_folder , "<STR_LIT>" ) ) <EOL> self . assertIn ( "<STR_LIT>" , conaninfo ) <EOL> self . assertIn ( "<STR_LIT>" , conaninfo ) <EOL> self . assertIn ( "<STR_LIT>" , conaninfo ) <EOL> self . assertIn ( "<STR_LIT>" , conaninfo ) <EOL> client . run ( "<STR_LIT>" ) <EOL> self . assertIn ( "<STR_LIT>" , client . user_io . out ) <EOL> client . run ( "<STR_LIT>" ) <EOL> self . assertIn ( "<STR_LIT>" , client . user_io . out ) <EOL> self . assertIn ( "<STR_LIT>" , client . user_io . out ) <EOL> def test_txt ( self ) : <EOL> base = '''<STR_LIT>''' <EOL> extension = '''<STR_LIT>''' <EOL> files = { "<STR_LIT>" : base , <EOL> "<STR_LIT>" : extension } <EOL> client = TestClient ( self . base_folder ) <EOL> client . save ( files ) <EOL> client . run ( "<STR_LIT>" ) <EOL> conaninfo = load ( os . path . join ( client . current_folder , "<STR_LIT>" ) ) <EOL> self . assertIn ( "<STR_LIT>" , conaninfo ) <EOL> self . assertNotIn ( "<STR_LIT>" , conaninfo ) <EOL> self . assertNotIn ( "<STR_LIT>" , conaninfo ) <EOL> client . run ( "<STR_LIT>" ) <EOL> conaninfo = load ( os . path . join ( client . current_folder , "<STR_LIT>" ) ) <EOL> self . assertIn ( "<STR_LIT>" , conaninfo ) <EOL> self . assertIn ( "<STR_LIT>" , conaninfo ) <EOL> self . assertIn ( "<STR_LIT>" , conaninfo ) </s>
