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