예제 #1
0
 def test_package_path(self):
     self.assertEqual("com", AaptTask.package_path("com"))
예제 #2
0
 def test_not_aapt_target(self):
     with self.android_library() as android_library:
         self.assertFalse(AaptTask.is_android_binary(android_library))
예제 #3
0
 def test_package_path_translation(self):
     self.assertEqual(
         os.path.join("com", "pants", "example", "tests"), AaptTask.package_path("com.pants.example.tests")
     )
예제 #4
0
 def test_is_aapt_target(self):
     with self.android_binary() as android_binary:
         self.assertTrue(AaptTask.is_android_binary(android_binary))
예제 #5
0
 def test_package_path(self):
   self.assertEqual('com', AaptTask.package_path('com'))
예제 #6
0
 def test_package_path_translation(self):
   self.assertEqual(os.path.join('com', 'pants', 'example', 'tests'),
                    AaptTask.package_path('com.pants.example.tests'))
예제 #7
0
 def test_not_aapt_target(self):
   with self.android_library() as android_library:
     self.assertFalse(AaptTask.is_android_binary(android_library))
예제 #8
0
 def test_is_aapt_target(self):
   with self.android_binary() as android_binary:
     self.assertTrue(AaptTask.is_android_binary(android_binary))