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