Neon-tech commited on
Commit
75880e1
·
verified ·
1 Parent(s): 9321ef9

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -0
app.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # bucket_test.py
2
+ import os
3
+
4
+ TEST_PATH = "/data/test_raw.dat"
5
+ CONTENT = b"\x00\x01\x02\x03\xff\xfe\xfd\xfc hello bucket"
6
+
7
+ # Write
8
+ with open(TEST_PATH, "wb") as f:
9
+ f.write(CONTENT)
10
+ print(f"Written {len(CONTENT)} bytes to {TEST_PATH}")
11
+
12
+ # Read back
13
+ with open(TEST_PATH, "rb") as f:
14
+ result = f.read()
15
+
16
+ if result == CONTENT:
17
+ print("PASS — bytes match exactly")
18
+ else:
19
+ print("FAIL — bytes differ")
20
+ print(f"Expected: {CONTENT}")
21
+ print(f"Got: {result}")
22
+
23
+ # List /data
24
+ print("\n/data contents:")
25
+ for f in os.listdir("/data"):
26
+ print(f" - {f}")