--- /dev/null
+#!/usr/bin/python3
+
+import unittest
+
+import test
+
+class BuildTestCase(test.TestCase):
+ """
+ Tests everything around builds
+ """
+ async def test_create_from_binary(self):
+ """
+ Tests whether we can create a build from a binary package
+ """
+ path = self.source_path("tests/data/beep-1.3-2.ip3.x86_64.pfm")
+
+ with self.db.transaction():
+ package = await self._create_package(path)
+
+ # Create the build
+ with self.assertRaises(RuntimeError):
+ build = self.backend.builds.create(self.repo, package, owner=self.user)
+
+
+if __name__ == "__main__":
+ unittest.main()